import request from '@/utils/request'

// 查询语音聊天室房间列表
export function listSocialVoiceRoom(query) {
  return request({
    url: '/system/socialVoiceRoom/list',
    method: 'get',
    params: query
  })
}

// 查询语音聊天室房间详细
export function getSocialVoiceRoom(id) {
  return request({
    url: '/system/socialVoiceRoom/' + id,
    method: 'get'
  })
}

// 新增语音聊天室房间
export function addSocialVoiceRoom(data) {
  return request({
    url: '/system/socialVoiceRoom',
    method: 'post',
    data: data
  })
}

// 修改语音聊天室房间
export function updateSocialVoiceRoom(data) {
  return request({
    url: '/system/socialVoiceRoom',
    method: 'put',
    data: data
  })
}

// 删除语音聊天室房间
export function delSocialVoiceRoom(id) {
  return request({
    url: '/system/socialVoiceRoom/' + id,
    method: 'delete'
  })
}

// 导出语音聊天室房间
export function exportSocialVoiceRoom(query) {
  return request({
    url: '/system/socialVoiceRoom/export',
    method: 'get',
    params: query
  })
}